home *** CD-ROM | disk | FTP | other *** search
/ Megaware 1 / Megaware Volume 1.iso / programg / c-tutor / items.hpp < prev    next >
Text File  |  1990-07-20  |  823b  |  26 lines

  1.           // This stores the items located in each room and also in
  2.           //  the players posession.  It consists of four boolean
  3.           //  variables and methods to use them.
  4.  
  5. #ifndef ITEMSHPP
  6. #define ITEMSHPP
  7.  
  8. #include "flyaway.h"
  9.  
  10. class items {
  11.    int keys_on_hand;      // TRUE if keys are here, otherwise FALSE
  12.    int candy_on_hand;
  13.    int ticket_on_hand;
  14.    int money_on_hand;
  15. public:
  16.    items(void);            // Constructor, set all to FALSE
  17.    void add_item(word item_to_add);      // Add one item to list
  18.    void drop_item(word item_to_drop);    // Drop one item from list
  19.    int item_here(word item_to_check);    // Returns TRUE or FALSE
  20.    void list_items(void);                // List personal items
  21.    void list_items_in_room(void);        // List location items
  22. };
  23.  
  24. #endif
  25.  
  26.